home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d20
/
fri_201.arc
/
FRIDAY.DOC
< prev
next >
Wrap
Text File
|
1991-09-19
|
20KB
|
413 lines
╒════════════════════════════════════════════════════════╕
│ Friday 2.01 - the quest for automation continues ... │
└────────────────────────────────────────────────────────┘
Friday.Exe/Friday.Doc written by geoffrey booher; 1:2270/233.0@fidonet.usa
┌─────────────┐
│ disclaimer: │
└─────────────┘
Friday 2.01 is *ONLY* guaranteed to consume diskspace. It has been very
extensively tested and found to be pretty reliable. In no way is the
author of this program responsible for any damages, consequential, or
otherwise from the neglect of Friday 2.01's use or misuse. Friday 2.01 is
provided as is, without warranty of any kind, either expressed or implied.
Friday 2.01 is NOT Public Domain Software, it's just basically free. It
may be freely used on any Computer with the following restrictions:
1. Any part of the Friday 2.01 files are NOT to be modified in *any* way.
2. The Friday Distribution Archive is NOT to be recompressed/reprocessed.
3. Friday 2.01 may NOT be utilized in any unlawful or illegal manner.
4. No Fees may be charged for Friday 2.01 - other than diskette cost.
FRI_201.ZIP may be put up for download on pay/subscription systems,
provided a fee is not charged for downloading FRI_201.ZIP itself.
┌──────────┐
│ support: │
└──────────┘
Send Netmail to Geoffrey Booher, 1:2270/233.0@fidonet. If you are expecting
a response, usually if you return poll me within 24 hours (nay weekends) and
I'll respond with a Netmail msg on HOLD for you. This assumes you are in a
current *FIDONET* Nodelist.
Geoffrey Booher - SysOp - The Gateway Net Bulletin Board System
North American RemoteAccess Support
RemoteAccess Beta Site
AVA Support/Registrations
1:2270/233.0@fidonet.usa
(815)233-5008 1200/2400/9600/14400 HST/V32b/V42b
Freeport, IL - USA
You can contact me through the above Bulletin Board System. Feel free to
send me your comments about Friday 2.01. I have received MANY to date.
If you aren't a BBS SysOp, you probably won't have a use for this program.
:-)
┌────────────────────────┐
│ overview and features: │
└────────────────────────┘
I *always* wanted a program to change my FILES.BBS on Fridays when I get
the new Nodediff and make the new Nodelist. I used to go in and have to
change NODEDIFF.A56 NODELIST.A56 to NODEDIFF.A63 and NODELIST.A63 for
example in my FILES.BBS with a text editor on Fridays. (not what you call
automation). I noticed that some BBS Software will work with NODEDIFF.A??
(wildcards) in the FILES.BBS, but ONLY when listing the files, NOT on
searches by filename or keyword, or New files since last call.
Friday 2.01 automates the process by searching the subdirectory specified
for the NODEDIFF.A?? NODELIST.A?? and updates FILES.BBS with the new names.
/Option Switches (/H or /? displays a help screen only)
/A NODE????.A?? - ARC (default - no /option parameter entered)
/D NODE????.D?? - DWC
/J NODE????.J?? - ARJ
/L NODE????.L?? - LZH
/N NODE????.nnn - unarchived - julian date extension
/P NODE????.P?? - PAK
/Z NODE????.Z?? - ZIP/ZOO
/On use n days (0-6) offset from Friday
/F FNEWS???.* (FidoNews option)
/Faname ANAME???.* (Any List name!)
Friday will also search for ANYLIST, any valid filename that uses the above
filename extension conventions, which most networks do. If your net does
not, I don't know about it! By making the filename(s) available on the
commandline, I have eliminated the need for any .CTL files and a need to
know every netdiff/list. I think the methodology used is pretty effective.
Friday 2.01 replaces the last two digits of the filename(s) descriptions
with the two rightmost digits of the Julian date of the past Friday as
obtained from DOS and calculated. I guess I should mention that if the time
and date on your computer are improperly set, expect unpredictable results!
This program started out simple. Typing FRIDAY just looked for NODEDIFF.A??
and NODELIST.A?? in the current directory only, and NEEDED to be executed
on Fridays. It has now evolved to many commandline switches, and now
automagically calculates and uses the current/past Nodediff day. It also
accepts a pathname to the FILES.BBS - and many many more options.
Portion of my FILES.BBS:
-----------
NODEDIFF.A56 Latest Fidonet Weekly Nodelist Update File
NODELIST.A56 Latest Complete Fidonet Nodelist File
-----------
My FILES.BBS after I received and processed the NODEDIFF.A?? file and
Friday 2.01 was run on Friday 09/20/91 up to 12am 09/27/91:
-----------
NODEDIFF.A63 Latest Fidonet Weekly Nodelist Update File
NODELIST.A63 Latest Complete Fidonet Nodelist File
-----------
Note the generic descriptions - I'll never edit those lines again! <smile>
If you aren't familiar with FILES.BBS, you might not need this program.
┌──────────────────────────────┐
│ overview and features con't: │
└──────────────────────────────┘
FILES.BBS is a straight ASCII text file that is usually located in the
subdirectory where you keep download files. It keeps a "list" of filenames
and descriptions. The filename is the 1st 12 positions (counting the '.'
character). Then, starting in position 15 is the description, usually
40-45 characters 'describing' the file. The description doesn't have to
start in 15 (it can start in 14) - but lots of other file management
utilities like it that way. See the sample FILES.BBS enclosed for the many
examples of what Friday 2.01 now supports.
┌─────────────────────────┐
│ setting up Friday 2.01: │ (Nodediff/Nodelist Flavor)
└─────────────────────────┘
Put Friday.Exe anywhere in your DOS PATH, along with any of your other BBS
Program utilities. See your DOS manual about the PATH Statement if needed.
Just change the batchfile that updates your nodelist and add FRIDAY at the
end:
my NODELIST.BAT:
@Echo OFF
If Not Exist C:\Fd\File\Nodediff.A?? GOTO END
Move C:\Fd\File\Nodediff.A?? C:\Fd\Nodelist
Ren C:\Ra\Bbsfiles\Node????.A?? Node????.Old
Cd C:\Fd\Nodelist
Copy C:\Fd\Nodelist\Nodediff.A?? C:\Ra\Bbsfiles
Rem - the following Xlaxdiff command makes the new NODELIST.A?? file
Xlaxdiff /A=C:\Ra\Bbsfiles\Nodelist /X=ARCE,ARC A /C
If Errorlevel 1 Goto NDERROR
Cd C:\Ra
Ranode
Cd C:\Fd
Fdnc /f
Del C:\Ra\Bbsfiles\Node????.Old
Rem - Friday 2.01 will update your FILES.BBS with the latest Nodelist files.
Rem - I'm using A??, it is the default when no parameters are entered.
Friday C:\Ra\Bbsfiles
Goto END
:NDERROR
Rem - if there was a problem applying the Nodediff - do NOTHING
Echo An error occurred while processing the Nodediff! >>C:\Fd\Fd.Log
:END
Friday 2.01 *expects* to find, open and search FILES.BBS. If it doesn't
it will beep at you and tell you it can not be found. If the filename(s)
are not found in the specified subdirectory and if the FILES.BBS doesn't
contain NODEDIFF.A or NODELIST.A (or D,J,L,N,P,Z with correct parameter
command) it won't do anything. If FILES.BBS and NODEDIFF.A and NODELIST.A
are found, it will put the last 2 rightmost digits of the current Nodediff
day into the proper spot and update FILES.BBS. ARC is still the Fidonet
NODELIST Standard, and is the default (no parameters entered). If no
pathname is entered, Friday looks for the filename(s) and FILES.BBS in the
current drive/directory. If your BBS Software uses another name besides
FILES.BBS and follows it's file format as described above, you can use the
FRIDAY environment variable to tell Friday to search another filename.
SET FRIDAY=FILES.DIR causes FILES.DIR to be acted upon. You may ONLY
specify a valid DOS Filename (no wildcards or path specifiers). If you do
NOT use (need) this, the DEFAULT is FILES.BBS and no SET FRIDAY= is needed.
┌─────────────────────────┐
│ setting up Friday 2.01: │ (FidoNews, Newsletter Flavor)
└─────────────────────────┘
Make sure Friday.Exe is anywhere in your PATH, along with any of your other
BBS/Program utilities. See your DOS manual about the PATH Statement if
needed.
change the batchfile that updates your fidonews and add FRIDAY /F to it.
my FIDONEWS.BAT:
@Echo OFF
If Exist C:\Ra\Docos\Fnews???.* Del C:\Ra\Docos\Fnews???.*
Move C:\Fd\File\Fnews???.* C:\Ra\Docos
rem - Friday 2.01 updates your FILES.BBS with the FNEWS file you received.
rem - /F alone defaults to Fidonews, /Ffnews NOT needed.
Friday /F C:\Ra\Docos
That's all there is to it. When your Mailer receives the File, have in your
inbound Mail statement in your main Runbbs.Bat file:
:MAIL
rem - Toss Incoming EchoMail and NetMail here
If Exist C:\Fd\File\Nodediff.A?? Call Nodelist.Bat
If Exist C:\Fd\File\Fnews???.* Call Fidonews.Bat
Goto START
Friday /F expects to find an FNEWS???.* file in the current directory you
are running from or pointing to with the pathname. If not, it will quit and
tell you so. If it finds the FNEWS???.* file in the current directory or
specified path, and cannot find a FILES.BBS also, it will quit and tell you
so. If it finds FNEWS???.* in the current directory or specified path and
finds a FILES.BBS, it then looks for FNEWS in the FILES.BBS. If FNEWS isn't
found in FILES.BBS - it will again do nothing. If it finds FNEWS in the
FILES.BBS, it replaces it with the filename found in the current directory
or specified pathname (the one just moved there ideally).
Friday has the ability to accept a 2 to 7 character string immediately
following the /F parameter. Note, there are NO SPACES between the /F and
the string. This allows you to update most weekly/monthly listings with no
intervention on your part.
Friday /Fusbbs C:\Ra\Docos (i.e: updates USBBS86.ZIP to USBBS87.ZIP)
Friday /Fbbs C:\Ra\Docos (i.e: updates BBS0891.ZIP to BBS0991.ZIP)
WARNING!! Use of LESS than 4 matching characters (as in above /Fbbs
example of Thelist BBS????.*) can get you into trouble
FAST! If there's another file in that directory called
BBS*.* Friday MAY go after that, and produce undesirable
results!
┌───────────┐
│ appendix: │
└───────────┘
Friday Command Syntax: *NOTE* Commands MUST be entered in order given!
Since Friday is normally run from a batchfile, this shouldn't be a problem.
Friday [/options] [/On] [filname1] [filname2] [d:\path] (case is insensitive)
[filname1] [filname2] not valid with /f option switch.
[/On] offset is not used with the /F option.
[filname1] [filname2] only 1 required, use for other than NODEDIFF NODELIST
Friday Sample Commands (used in batchfiles):
Friday - looks for both NODEDIFF.A?? NODELIST.A?? in FILES.BBS in current
directory (default with no parameters entered on the commandline)
Friday /f C:\Ra\Docos - looks for Fnews*.* in pathname and FILES.BBS
Note: /f and pathname ONLY are valid. Runs Friday in strictly FNEWS mode.
Default (Friday /f) is Fnews*.* and FILES.BBS in current directory.
Use the d:\path to point to your FNEWS*.* subdirectory.
Friday C:\Ra\Bbsfiles - looks for both NODEDIFF.A?? and NODELIST.A?? in
FILES.BBS and within C:\Ra\Bbsfiles subdirectory.
(this is what I use)
Friday /l Anydiff Anylist D:\Archives - looks for both ANYDIFF.L?? and
ANYLIST.L?? in the D:\Archives
subdirectory and it's FILES.BBS.
NOTES: Anydiff and Anylist can be any valid DOS filename. Only 1 filename
is required, so that those not posting both files can use Friday.
Again, it defaults to NODEDIFF.A?? NODELIST.A?? - but any filename
combination with the .A?? .D?? .J?? .L?? .P?? .Z?? extension within
FILES.BBS is valid.
Friday /z Signodes C:\Netlists -looks for SIGNODES.Z?? in the C:\Netlists
subdirectory and in it's FILES.BBS.
Friday /o2 Rbbslist C:\Netlists - looks for RBBSLIST.A?? in the C:\Netlists
subdirectory and in it's FILES.BBS. Uses
Offset of 2 days from Friday (Sunday).
Friday /n Dbnet C:\Netlists - looks for DBNET.nnn (the unarchived julian date
extension) in C:\Netlists and in it's FILES.BBS.
Friday will detect if the FILES.BBS is up-to-date and will not update the
FILES.BBS if it doesn't need to. Friday DOES check for DIFF/LIST files
presence in the directory. It scans the directory for the names given (or
defaults if none entered). Upon success, it then scans for a match in
FILES.BBS, and updates on the latest nodediff day, if not equal (less than)
the previous friday date.
Note: If default is used or 2 filenames are entered on the commandline,
Friday expects to find BOTH files.
[d:\path] is any valid DOS subdirectory pathname. Note, there is NO
trailing backslash! Do NOT enter a trailing backslash on the commandline,
you will get an invalid path error.
┌─────────────────────────────┐
│ Friday 2.01 technical info: │
└─────────────────────────────┘
Friday.Exe was compiled with Borland International's Turbo(C++) 1.00
using the Small Memory Module ( < 64kb heap ) and the C++ (Friday.Cpp)
option. Friday will run in less than 128kb RAM (64kb code - 64kb data).
Friday 2.01 exits with the following errorlevels for trapping in *.BAT
files. Although not really needed, they are there for batchfile gurus.
errorlevel 7 - Invalid /option switch parameter or /H help
errorlevel 6 - FILES.BBS already up-to-date, no action needed
errorlevel 5 - filename(s) argument not found in FILES.BBS
errorlevel 4 - filename(s) not found in subdirectory or pathname
errorlevel 3 - FILES.BBS not found in subdirectory or pathname
errorlevel 2 - Invalid pathname / filename argument string
errorlevel 1 - Error getting dostime or other error closing FILES.BBS
errorlevel 0 - successful completion FILES.BBS updated
Friday 2.01 usually runs on Fridays (hence it's name). But, realising not
every SysOp gets the Nodediff Update on Fridays, it calculates the day
of the week and figures out the last Nodediff day! If you run on Saturday,
it subtracts 1 from the Julian day to arrive at the desired number. How
this works is if you run the program on Friday or any day up until next
Friday, it will always replace the previous Fridays Nodediff day number.
Using the Offset day sets the number of days FROM the offset day. So, if
the offset day is Sunday ( /O2 ) Friday updates it with the prior Sunday's
number.
Friday 2.01 looks for FNEWS???.* in FILES.BBS and for the filename mask in
the current directory with the /F switch (defaults to FNEWS) parameter. If
both are not found, it will not do anything. If it finds FNEWS*.* in both
places, it takes the filename found in the current directory or pathname
and replaces the name in the FILES.BBS with it. Friday works in the same
manner with the DIFF/LIST option, checking if those files exist in the
subdirectory, and in FILES.BBS.
Any user definable string from 2 to 7 positions can be used after the /F
to check for and update a particular filemask. Less than 4 - BE CAREFUL!!
Friday 2.01 was tested on a 80286/12MHz system under DOS 4.01 and DOS 5.00.
It has also been tested on a 80386/33 and works well under DESQview.
Friday 2.01 reads and then writes only the change, writing in place. Since
it's so fast, in the unlikely event the power fails (at the precise second
that it is updating) it will truncate FILES.BBS to 0 bytes. Friday has been
tested on a 320kb FILES.BBS and doesn't really care HOW large FILES.BBS is.
Friday 2.01 will replace ALL matching strings in FILES.BBS. So if you have
them in there more than once (i.e: keep old NodeDiffs/Nodelists/FidoNews
hanging around) ... then this program is most likely not for you. This
will also get you into trouble using Friday /Fxx as the 2 character minimum
can occur in a Filename and in FILES.BBS quite often (so I've found out!).
Also, some SysOps don't keep the Nodelist/Nodediff/Fidonews files online.
Again, this program is likely not for you.
┌─────────┐
│ thanks: │
└─────────┘
Thanks to Eric Winter who helped me initially write Friday 0.01. Without
his help, I wouldn't have started learning the C language 2 years ago. :-)
Thanks to Kevin Zimmerman, SysOp of The Boomtown BBS in McConnell, IL
1:2270/868@fidonet for relentlessly allowing me to bash the program, change
the date on his system hundreds of times, and beat his hard disk to death
with one compile after another. It was he who originally suggested the new
offset for his RBBSLIST since he joined and has now quit that network.
Thanks also to Bruce Bodger, SysOp of The Truckstop BBS in Tulsa, OK
1:170/400@fidonet for finding a few bugs, and for suggesting some excellent
enhancements to Friday 0.01 and 0.10. The latest version of FRIDAY can be
found on his system as well.
Thanks to Bob Glasser, SysOp of Utopia Technologies Ltd in Levittown, NY
1:107/203@fidonet for the excellent suggestions which were added into
Friday 2.00, the /N unarchived option, and the support for other weekly
ragnames. Also, he provided some insight for FIXING that year rollover bug
that was evading me for months!
┌───────┐
│ misc: │
└───────┘
I realize some of you use NODEDIFF.ARC or NODELIST.ARC in the FILES.BBS.
IMHO, I feel the number description is a little bit better to have in
there. This way, if I'm a Fidonet SysOp that grunged my nodelist <oops>,
I'm sure about getting the latest version instead of an ARC or ZIP and
trusting the system I'm obtaining it from to have current Nodediff/Nodelist
files. It is also in a Standard name, ready to process by Nodelist update
utilities. And you don't have to keep extra generic nodelist files hanging
around to quote-unquote "automate" things and waste valuable diskspace!
My hope is that you will *enjoy* my program and it helps you out. One thing
is for sure, us Friday user dudes love the program!
The following products/examples are the Copyrighted materials of their
respective named holders:
Turbo(C++) 1.00 Borland International
DESQview QuarterDeck Office Systems
Friday 2.01 Geoffrey Booher - odie software technology
ARC System Enhancement Associates
DWC Dean W. Cooper
LZH Haruyasu Yoshizaki
ARJ Robert K. Jung
PAK NoGate Consulting
ZIP Phil Katz - PKWARE
ZOO Rahul Dhesi
FrontDoor (Fd - Fdnc) Joaquim H. Homrighausen - Advanced Engineering sarl
RemoteAccess (Ra - Ranode) Andrew Milner - Continental Software
Xlaxdiff Scott Samet
Fidonet Tom Jennings
DOS International Business Machines and Microsoft
PC/AT International Business Machines